<template>
  <div class="module-dialog">
    <div class="box-mask">
      <div class="box-container" :style="{ width: width+'px'}">
        <div class="box-title">提示<span style="float:right;margin-right:10px" >
            <!-- <i class="el-icon-circle-close-outline"></i> -->
            </span></div>
        <div class="box-content"><i class="el-icon-question tips"></i>  {{text}}</div>
        <div class="box-bottom">
          <el-button type="primary" style="margin-right: 36px;" @click="$emit('clickBtn','ok')">确 定</el-button>
          <el-button @click="$emit('clickBtn','cancel')">取 消</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "confirm",
  props: {
    text: {
      type: String,
      required: true
    },
    width: {
      type: Number,
      required: false
    }
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
@import "../dialog.scss";
.box-container{
  width: 260px;
  height: 154px;
  border-radius: 0px;
  padding:0px;
}
.box-title{
  width:100%;
  height:43px;
  line-height:43px;
  color:#fff;
  background:#00978A;
  font-size:15px;
  // text-align:left;
  padding-left:15px;
}
.box-container .box-bottom{
  border: 0px;
  height:2.3rem;
}
.tips{
  margin-right: 10px;
  color:orange;
  font-size: 30px;
}
.box-container .box-content{
  justify-content:left;
  padding: 0 15px;
  white-space: normal;
}
</style>